home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / C++ AppleLink Messages / CPlus.Dev$ 3⁄23⁄90 / 0088-Dead Code Stripping -Mar90 < prev    next >
Encoding:
Text File  |  1990-03-23  |  940 b   |  29 lines  |  [TEXT/GEOL]

  1. Item    3823778                         23-March-90        10:05PST
  2.  
  3. From:   MADA.EUROPE                     MacApp Dev Assoc Eur,E Carrasco,IDV
  4.  
  5. To:     CPLUS.DEV$                      C++ Interest List--Developers
  6.  
  7. cc:     CPLUS.APPLE$                    C++ Interest List--Apple Employees
  8.  
  9. Sub:    Dead Code Stripping with C++
  10.  
  11. RE: Dead Code Stripping with C++
  12.  
  13. Hi Etienne,
  14.  
  15. gDeadStripSuppression is always false. So the code following code will never be
  16. executed. (We're speaking about MacApp 2.0B9 and later)
  17.  
  18.     TFoo* aFoo = new TFoo   // called to prevent dead code stripping.
  19.  
  20.   If TFoo is a nested view of a complex view, you may use viewEdit to draw it
  21. and then call NewTemplateWindow. NewTemplateWindow will instantiate your TFoo
  22. view by name. Your code will never instanciate TFoo view directely, so the
  23. linker will strip the code for TFoo class.
  24.  
  25.     aFoo.Free is not needed and will make your code longer.
  26.  
  27. Eric
  28.  
  29.